using System;
using System.IO;

public partial class MainMenu : System.Web.UI.MobileControls.MobileUserControl
{
    protected string currentPageName;
    protected int pageId;
    protected void Page_Load(object sender, EventArgs e)
    {
        currentPageName = getCurrentPageName();
        string pageIdStr = Request.QueryString["id"];
        if(!int.TryParse(pageIdStr, out pageId))
        {
            pageId = -1;
        }


    }

    protected string getCurrentPageName()
    {
        return Path.GetFileNameWithoutExtension(Request.Url.AbsolutePath).ToLower();
    }
}
